#ifndef __MAIN_H
#define __MAIN_H

#include <allegro.h>
#include <assert.h>
#include <stdio.h>

extern BITMAP* buffer;
#define GFX_MODE GFX_AUTODETECT_WINDOWED
//#define GFX_MODE GFX_AUTODETECT_FULLSCREEN
#define WIDTH 640
#define HEIGHT 480
#define FPS 60
#define MAX_PLAYERS 16

#define TOWERHACK_DEBUG 1
#define TOWERHACK_DEBUG_DUNGEON 1
#define TOWERHACK_DEBUG_DUNGEON_ANIM 0

enum { STATE_UNDEFINED, STATE_LOBBY, STATE_GAME };
extern int global_state;

void change_state (int new_state);

#endif
